<?php

class sfAssetThumb extends BasesfAssetThumb
{
	public function getWebPath($is_absolute = false){
		sfContext::getInstance()->getConfiguration()->loadHelpers('Asset');
		//die(globals::_get_thumb_dir());
        $web_path = sfAssetToolkit::_get_thumb_dir(false).'/'.$this->getWidth().'x'.$this->getHeight().'/'.$this->getsfAsset()->getId().'_'.$this->getsfAsset()->getFilename();
		
		if($is_absolute){
		  $web_path = image_path( $web_path , true );
		}
		
		return $web_path;
	}
}
